import os

# unzip -O CP936 aaa.zip ### to extract zip file with chinese file name

rootdir = './3'
lst = os.listdir(rootdir)
for i in range(0,len(lst)):
    path = os.path.join(rootdir, lst[i])
    if os.path.isfile(path):
        os.system('libreoffice --invisible --convert-to docx:"MS Word 2007 XML" ' + path)
